import { IFeidaoAiBrowserComponent } from '@dfeidao/atom-web/interfaces';
import get from '@dfeidao/atom-web/local/get';
import nodejs from '@dfeidao/atom-web/msg/nodejs';
import refresh from '@dfeidao/atom-web/url/refresh';

export default async function a003(fd: IFeidaoAiBrowserComponent) {
	// todo
	const nos = get(fd, 'nos') as string[];
	const res = await nodejs<{ code: 0 | 1; result: string; }>('wangju/zj-000010/s001', {
		nos
	});
	console.log(res);
	console.log(res.code);
	if (res.code === 1) {
		alert('删除成功');
		refresh();
	} else {
		alert('删除失败');
	}
}
